package cn.demographic.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.demographic.dao.UserMapper;
import cn.demographic.entity.User;
import cn.demographic.service.ApplicanttableService;
/**
 * 审核信息
 * @author Administrator
 *
 */
@Service
public class ApplicanttableServiceImpl implements ApplicanttableService {
	@Autowired
	private UserMapper userMapper;
	
	/**
	 * 查询审核状态（审核中）的数据
	 * @return
	 */
	public List<User> findUserInTheReview(){
		Integer status = 0;
		return userMapper.findUserInTheReview(status);
	};
	
	/**
	 * 查询审核状态（审核未通过）的数据
	 * @return
	 */
	public List<User> findUserAuditFailed(){
		Integer status = 2;
		return userMapper.findUserInTheReview(status);
	};
	
	/**
	 * 查询审核状态（审核通过）的数据
	 * @return
	 */
	public List<User> findUserapproved(){
		Integer status = 1;
		return userMapper.findUserInTheReview(status);
	};
}
